package com.wc.AlgoOJ_train.train1.c7.A701;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2024/1/11 9:22
 * @description 蟠桃记
 * http://43.138.190.70:8888/p/A701
 */
public class Main {
    public static void main(String[] args) {
        int[] dp = new int[30];
        dp[1] = 1;
        for (int i = 2; i < 30; i++) {
            dp[i] = (dp[i - 1] + 1) << 1;
        }
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()){
            int n = sc.nextInt();
            System.out.println(dp[n]);
        }
    }
}
